body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f9f4ff; /* 淡紫色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(156, 106, 222, 0.1); /* 紫色阴影 */
    width: 400px;
    border: 1px solid #e6d5ff; /* 淡紫色边框 */
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #5a3d7a; /* 深紫色标题 */
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #5a3d7a; /* 深紫色文字 */
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e6d5ff; /* 淡紫色边框 */
    border-radius: 4px;
    font-size: 16px;
    background-color: #fdfaff; /* 非常淡的紫色背景 */
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #9c6ade; /* 紫色聚焦边框 */
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(156, 106, 222, 0.2);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    height: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input {
    margin-right: 8px;
    accent-color: #9c6ade; /* 紫色复选框 */
}

.remember-me label {
    color: #5a3d7a; /* 深紫色文字 */
    font-size: 14px;
    cursor: pointer;
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #9c6ade; /* 紫色按钮 */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #8a5acd; /* 深一点的紫色 */
}

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.form-footer a {
    color: #7a5a9a; /* 中等紫色 */
    text-decoration: none;
    transition: color 0.3s;
}

.form-footer a:hover {
    color: #9c6ade; /* 紫色悬停 */
    text-decoration: underline;
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #7a5a9a; /* 中等紫色 */
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #e6d5ff; /* 淡紫色分隔线 */
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f2ff; /* 淡紫色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e6d5ff; /* 淡紫色边框 */
}

.social-icon:hover {
    background-color: #f0e5ff; /* 稍深的淡紫色 */
    transform: translateY(-2px);
}

.social-icon img {
    width: 20px;
    height: 20px;
}